package com.dede.monochromatism.util

import java.text.SimpleDateFormat
import java.util.*

/**
 * @author hsh
 * @date 2017/9/28 16:00.
 * @doc
 */
object UiUtil {

    private val calendar by lazy { Calendar.getInstance() }
    private val format by lazy { SimpleDateFormat("HH:mm") }

    fun getTime(hour: Int, minute: Int): String {
        calendar.set(Calendar.HOUR_OF_DAY, hour)
        calendar.set(Calendar.MINUTE, minute)
        return format.format(calendar.time)
    }
}